<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>新增</title>
    <link rel="stylesheet" href="/lib/layui/css/layui.css" media="all">
    <link href="/lib/font-awesome-4.7.0/css/font-awesome.css" rel="stylesheet"/>
    <link href="/lib/winui/css/winui.css" rel="stylesheet"/>
    <style type="text/css">
        .layui-input-block {
            margin-left: 110px;
            min-height: 36px;
            padding-right: 15px;
        }
    </style>
</head>

<body>
<div style="margin-top: 20px;">

</div>
<form class="layui-form" action="/newsCommentController/save">

    <div class="layui-form-item">
        <label class="layui-form-label">发布评论者ID</label>
        <div class="layui-input-block">

            <input id="userId" lay-vertype="tips" lay-verify="userId"
                   name="userId"
                   class="layui-input"
                   type="text">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">父评论ID</label>
        <div class="layui-input-block">

            <input id="commentParentId" lay-vertype="tips" lay-verify="commentParentId"
                   name="commentParentId"
                   class="layui-input"
                   type="text">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">评论内容</label>
        <div class="layui-input-block">

            <input id="commentContent" lay-vertype="tips" lay-verify="commentContent"
                   name="commentContent"
                   class="layui-input"
                   type="text">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">评论状态</label>
        <div class="layui-input-block">

            <input id="commentState" lay-vertype="tips" lay-verify="commentState"
                   name="commentState"
                   class="layui-input"
                   type="text">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">新闻ID</label>
        <div class="layui-input-block">

            <input id="newsId" lay-vertype="tips" lay-verify="newsId"
                   name="newsId"
                   class="layui-input"
                   type="text">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">创建时间</label>
        <div class="layui-input-block">
            <input id="createTime" lay-vertype="tips" required
                   lay-verify="required" lay-verify="createTime" name="createTime"
                   class="layui-input"
                   type="text" lay-verify="date" placeholder="yyyy-MM-dd">
        </div>
    </div>


    <div class="layui-input-block" style="text-align: center;margin: 0px;padding: 0px;">
        <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
        <input type="reset" class="layui-btn layui-btn-primary"　value="重置"/>
    </div>
</form>

<script src="/lib/layui/layui.js"></script>
<script src="/js/newsComment/add.js"></script>
</body>

</html>
